Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print the grid in terminal, modified based on PR #2 #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LuxxxLucy
Copy link

Re-work #2 but take numpy array as input.

Example usage:

import arckit
import arckit.vis as vis

# Load the training data
train_set, eval_set = arckit.load_data()

# Get the first task
task = train_set[0]

# Loop through the training examples
for i, (input_array, output_array) in enumerate(task.train):
    print(f"Training Example {i+1}")
    print("Input:")
    vis.print_grid(input_array)
    print("Output:")
    vis.print_grid(output_array)
    print()

which has the same visual result as in #2

image

@mxbi
Copy link
Owner

mxbi commented Nov 11, 2024

This is great, thank you! Could we add an example to the README?

https://github.com/mxbi/arckit/blob/main/README.md?plain=1#L116

@LuxxxLucy
Copy link
Author

script snippet and image added to RAEDME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants